class PersonalDocumentsViewModel:
    def __init__(self, data):
        self.document = data.document
        self.osskey = data.osskey
        self.id = data.id
        self.create_time = data.create_datetime


class PersonalDocumentsListView:
    def __init__(self):
        self.code = 0
        self.remain = 0
        self.msg = ''
        self.data = []

    def fill(self, data):
        self.code = 0
        self.msg = ''
        self.count = data.total
        self.data = [PersonalDocumentsViewModel(item) for item in data.items]
